Comprehensive guide to CSS attribute selectors: target elements by attributes (href, src, type) with [attr], exact matches [attr="value"], substring matches [attr*|^|$="value"], presence [attr], and negation :not([attr]). Includes real-world patterns for links, images, and forms (required/disabled, external links, PDFs, alt text), enabling flexible, maintainable styling without extra classes or IDs.
